#include  "sys.h"
#include "cardoper.h"
#include "i2c.h"
#include "disp1.h"
#include "public.h"
#include "meterdata.h"
#include "froze.h"
#include "powerfun.h"
#include "flashinfo.h"
#include "errlst.h"
#include "jdctrl.h"
#include "predef.h"
#include "sys.h"
#include "meter.h"
#include "public.h"
#include "app.h"
#include "sysdata.h"
#include "flashinfo.h"
#include "meterdata.h"

#include "special.h"
#include "safedate.h"
extern u8 ComData[];
extern strRamData RamData;
extern u8 zeroP[];
extern strFlashInfo FlashInfo;
extern const sFileSet FileSet;
extern struct stSAFEDATA  stsafedata;
@eeprom  struct  stFLASHMEM  stFlashMem = { {0,0},{0,0}};

 
void 	 nWriteLastMoney (void  )
{
		u32 ltemp[2] ;
		struct  stFLASHMEM  p;
		p.LastMonthMoney[0] = stFlashMem.LastMonthMoney[1] ;
		p.LastMonthMoney[1] =  _S_stLVSave.SumMoney ;
	 	 
		p.LastMonthSumUse[0] = stFlashMem.LastMonthSumUse[1] ;
		p.LastMonthSumUse[1] =    FlashInfo.RunInfo.LastUse; 
		 Copy_FlashInfo ( ( u8 *)&(stFlashMem )  ,(u8 *)&p  , sizeof ( struct  stFLASHMEM  ));
	 
}